// import { readFileSync } from 'fs'

export interface FileReader {
    read(filePath:string):string
}


// 将强依赖转化为参数 fileReader
export function readAndProcessFile(filePath:string,fileReader:FileReader):string {
    const content:string = fileReader.read(filePath)
    return content + "-> test unit"
}